import request from '@/utils/request'

// 查询S合同列列表
export function listSagreement(query) {
  return request({
    url: '/system/sagreement/list',
    method: 'get',
    params: query
  })
}

// 查询S合同列详细
export function getSagreement(agrId) {
  return request({
    url: '/system/sagreement/' + agrId,
    method: 'get'
  })
}

// 新增S合同列
export function addSagreement(data) {
  return request({
    url: '/system/sagreement',
    method: 'post',
    data: data
  })
}

// 修改S合同列
export function updateSagreement(data) {
  return request({
    url: '/system/sagreement',
    method: 'put',
    data: data
  })
}

// 删除S合同列
export function delSagreement(agrId) {
  return request({
    url: '/system/sagreement/' + agrId,
    method: 'delete'
  })
}
